how to create a machine learning application from scratch